package com.iflytek.iot.zookeeper;

import org.apache.zookeeper.server.auth.DigestAuthenticationProvider;

import java.security.NoSuchAlgorithmException;

/**
 * zookeeper生成acl控制权限用户
 * @author yusun4 2020/08/13.
 */
public class ZkSupperAccountSetting {

    public static void main(String[] args) throws NoSuchAlgorithmException {
        String generateDigest = DigestAuthenticationProvider.generateDigest("root:test@znjj");
        System.out.println(generateDigest);
    }
}
